#
# Be sure to run `pod lib lint OMTUIKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'OMTUIKit'
  s.version          = '0.1.2'
  s.summary          = "基础 UI 组件"

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = "基础 UI 组件"

  s.homepage         = 'https://gitee.com/yizhaorong/OMTUIKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '昭荣伊' => '243653385@qq.com' }
  s.source           = { :git => 'https://gitee.com/yizhaorong/OMTUIKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'
  s.source_files = 'OMTUIKit/Classes/OMTUIKit.h'
  s.public_header_files = 'OMTUIKit/Classes/OMTUIKit.h'

  s.subspec 'Vendors' do |ss|
    ss.source_files = 'OMTUIKit/Classes/Public/**/*.{h,m}'
    ss.public_header_files = 'OMTUIKit/Classes/Public/**/*.{h}'
  end

  s.subspec 'Base' do |ss|
    ss.subspec 'Protocol' do |sss|
      sss.source_files = 'OMTUIKit/Classes/Public/**/{OMT*Protocol}.{h,m}'
      sss.public_header_files = 'OMTUIKit/Classes/Public/**/{OMT*Protocol}.{h}'
    end

    ss.subspec 'View' do |sss|
      sss.source_files = 'OMTUIKit/Classes/Public/**/{OMTNavigationBar}.{h,m}'
      sss.public_header_files = 'OMTUIKit/Classes/Public/**/{OMTNavigationBar}.{h}'
    end

    ss.subspec 'Controller' do |sss|
      sss.dependency 'OMTUIKit/Base/View'
      sss.dependency 'OMTUIKit/Base/Protocol'
      sss.source_files = 'OMTUIKit/Classes/Public/**/{OMT*Controller}.{h,m}'
      sss.public_header_files = 'OMTUIKit/Classes/Public/**/{OMT*Controller}.{h}'
    end
  end

  s.dependency 'MBProgressHUD'
  s.dependency 'MJRefresh'
  s.dependency 'OMTCoreKit'
  s.dependency 'DZNEmptyDataSet'
end
